package com.lubase.core.service.flowform.invoke;

import com.lubase.core.extend.IInvokeMethod;
import com.lubase.core.service.flowform.WorkFlowAdapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class GetTransferUserList implements IInvokeMethod {

    @Autowired
    WorkFlowAdapterService workFlowAdapterService;

    @Override
    public Object exe(HashMap<String, String> hashMap) throws Exception {
        String fInsId = checkAndGetParam("fInsId", hashMap);
        return workFlowAdapterService.getCurrentApprovalUser(fInsId);
    }

    @Override
    public String getDescription() {
        return "流程监控：获取待转办人员列表";
    }

    @Override
    public String getId() {
        return "943214791009243136";
    }
}
